package com.xs.common.excel;

import javax.validation.constraints.NotNull;

/**
 * @author xs
 * date 2018/4/11 9:22
 */
public class Student {

    @ExcelField(name = "NO", column = "A")
    @NotNull(message = "id不能为空")
    private String no;

    @ExcelField(name = "姓名", column = "B")
    @NotNull(message = "姓名不能为空")
    private String name;

    @ExcelField(name = "城市", column = "C")
    private String city;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Student{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
